<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/30
 * Time: 16:11
 */

namespace App\Model\Account;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class AccountPrice extends Model
{
        /**
         * 会员等级列表
         */
    public function memberList()
    {
        $list = DB::table('account_price')
            ->where('ap_status', 1)
            ->select('ap_id', 'ap_name')
            ->get();
        if (sizeof($list) == 0) {
            return  false;
        }
        return $list;
    }
}